const mongoose=require("mongoose")

mongoose.connect("mongodb://huxvbo:s5eaaLxLxHnc8hyB@101.37.16.92:27017/huxvbo")

const conn=mongoose.connection

conn.on("open",(req,res)=>{
    console.log("数据库连接成功");
})

conn.on("error",(err,data)=>{
    console.log("数据库连接失败，原因是",err);
})

module.exports=mongoose